//
//  RecieveAlertView.h
//  TengyunStation
//
//  Created by Johnny on 15/9/11.
//  Copyright (c) 2015年 xingrong. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PositionBtn.h"
@class ReceiverDBModel;
@class UploadExpress;

@protocol RecieveAlertViewDelegate <NSObject>

- (void)cancelUploadExpress;
- (void)uploadExpressSuccess:(UploadExpress *)express;

@end

@interface RecieveAlertView : UIView<UITextFieldDelegate,UITableViewDataSource,UITableViewDelegate> {
    UIWindow *_alertWindow;
    UIView *_topView;//上半部分界面
    UIView *_bottomView;//下半部分界面
    UITableView *_tableView;
    NSArray *_phoneList;
    ReceiverDBModel *_receiverModel;
    
    PositionBtn *_positionBtn;
    UITextField *_expressIdTextField;
    UITextField *_phoneTextField;
    UITextField *_floorTextField;
    UITextField *_roomTextField;
    
    UploadExpress *_uploadExpress;
    BOOL _cancel;
}

@property(nonatomic,strong)NSArray *codeList;
@property(nonatomic,weak)id<RecieveAlertViewDelegate>delegate;
- (id)initWithUploadExpress:(UploadExpress *)uploadExpress;
- (void)show;

@end
